/**
 * Created with IntelliJ IDEA.
 * User: naberrad
 * Date: 25/10/13
 * Time: 15:01
 * To change this template use File | Settings | File Templates.
 */
public class Dossier {

     private static int numero=0;
    private String nom;
    private String prenom;
    private boolean resultatConsultation = false;

    public Dossier(String nom, String prenom) {
        this.nom = nom;
        this.prenom = prenom;
        this.numero += 1;
    }

    public int getNumero() {
        return numero;
    }

    public String getNom() {
        return nom;
    }

    public String getPrenom() {
        return prenom;
    }

    public boolean isResultatConsultation() {
        return resultatConsultation;
    }

    public void setResult(boolean resultat) {
        this.resultatConsultation = resultat;
    }

    public String toString()
    {
        return "Numero: "+ numero+ "Nom: "+nom +"\nPrenom: "+ prenom +"\nConsultation: "+ resultatConsultation;
    }
}
